(function () {
    'use strict';

    // Usage:
    //
    // Creates:
    //

    angular
        .module('yky.components')
        .component('examForm', {
            templateUrl: './exams.form.html',
            controller: ExamFormController,
            controllerAs: 'vm',
            bindings: {
                title: '<',
                resolve: '<',
                close: '&',
                dismiss: '&'
            }
        });

    ExamFormController.inject = ['$http'];
    function ExamFormController($http) {
        var vm = this;
        vm.exam = {
            name: null,
            date: null,
            questions: [
                {
                    subject: '色彩',
                    content: null
                }, {
                    subject: '素描',
                    content: null
                }, {
                    subject: '速写',
                    content: null
                }
            ]
        },
        ////////////////

        vm.onInit = function () {};
        vm.onChanges = function (changesObj) {};
        vm.onDestory = function () {};
    }
})();